import random


winning_numbers = random.sample(range(1, 34), 8)

input_numbers = input("请输入8位数字，中间用空格隔开：")
input_list = input_numbers.split()

correct_numbers = 0
for num in input_list:
    if int(num) in winning_numbers:
        correct_numbers += 1

if correct_numbers == 8:
    print("恭喜你获得一等奖！中奖号码为：", winning_numbers)
elif correct_numbers == 7:
    print("恭喜你获得二等奖！中奖号码为：", winning_numbers)
elif correct_numbers == 6:
    print("恭喜你获得三等奖！中奖号码为：", winning_numbers)
elif correct_numbers == 5:
    print("恭喜你获得四等奖！中奖号码为：", winning_numbers)
else:
    print("很遗憾，没有中奖,中奖号码为：", winning_numbers)
